package com.duolebo.uteped_sdk.ota;

/**
 * @author jc.huang
 * @date 2023/8/2
 */
public interface BleOtaListener {

    int OTA_STATE_UNKNOWN = 0;
    int OTA_STATE_IDLE = 1;
    int OTA_STATE_PREPARING = 2;
    int OTA_STATE_PREPARED = 3;
    int OTA_STATE_TRANSFERRING = 4;
    int OTA_STATE_TRANSFERRED = 5;

    void onOtaStatus(int state);

    void onOTAProgress(int progress);

    void onOTAError(int errCode, String errMsg);
}
